home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / c / SASalloca.readme < prev    next >
Text File  |  1995-09-20  |  1KB  |  37 lines

  1. Short:    Alloca() implementation for SAS/C
  2. Author:   proels@fmi.uni-passau.de (Stefan Proels)
  3. Uploader: proels@fmi.uni-passau.de (Stefan Proels)
  4. Type:     dev/c
  5.  
  6. The use of alloca() is quite common for many UNIX applications.
  7. If you intend to port such a program using SAS/C you'd have to
  8. eliminate all alloca()s as SAS/C doesn't supply this function.
  9.  
  10. There is already another "mostly portable" implementation of
  11. alloca(). However, it does not work with SAS/C as it makes
  12. assumptions about the compiler's handling of the stack-pointer
  13. which are not true for SAS/C.
  14.  
  15. This is where SASalloca comes in. The idea is to (ab)use the
  16. _PROLOG() and _EPILOG() hooks used by the profiler.
  17.  
  18. There are no limitations regarding the use of stackextention,
  19. setjmp() and longjmp(), etc. In general, all you have to do is
  20. to compile your sources with PROFILE enabled and to link them
  21. with this alloca implementation.
  22.  
  23. This package is PUBLIC DOMAIN. Source included.
  24.  
  25.  
  26. ============================= Archive contents =============================
  27.  
  28. Original  Packed Ratio    Date     Time    Name
  29. -------- ------- ----- --------- --------  -------------
  30.     1921     840 56.2% 19-Jul-95 21:08:26 +alloca.c
  31.      660     411 37.7% 19-Jul-95 21:23:20 +alloca.o
  32.      684     357 47.8% 19-Jul-95 21:08:14 +alloca.h
  33.     9772    3665 62.4% 19-Jul-95 21:23:20 +Readme
  34.      193     143 25.9% 19-Jul-95 21:29:24 +SMakefile
  35. -------- ------- ----- --------- --------
  36.    13230    5416 59.0% 20-Jul-95 12:52:06   5 files
  37.